using System;
/*
** Bitstream.cs
**
** Copyright (c) 2010 Peter McQuillan
**
** All Rights Reserved.
**                       
** Distributed under the BSD Software License (see license.txt)
***/

namespace XnaWavPack
{
	class Bitstream
	{
		internal short end, ptr; // was uchar in c
		internal long file_bytes, sr; // was uint32_t in C
		internal int error, bc;
		internal System.IO.BinaryReader file;
		internal int bitval;// = 0;
		internal byte[] buf;// = new byte[1024];
		internal int buf_index;// = 0;

		public void Clear()
		{
			end = ptr = 0;
			file_bytes = sr = 0;
			error = bc = 0;
			file = null;
			bitval = 0;
			buf = null;
			buf_index = 0;
		}
	}
}